#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2024/12/30 18:37
# @Author : George
import socket
import time

s = socket.socket()
s.connect(('127.0.0.1',10001))
while True:
    s.sendall(b'hello')
    data = s.recv(1024)
    print(data.decode('utf-8'))
    time.sleep(2)